package org.alfalfa.datawarehouse.model;

import com.mongodb.client.MongoCollection;
import org.alfalfa.datawarehouse.DWRecord;
import org.bson.Document;

/**
 * @Author : Max-Goday
 * @Created : 2016-10-22
 * @E-mail : goday.max@gmail.com
 * @Version : 1.0
 * @Copyright Alfalfa.cc
 */
public class User extends DWRecord {
	protected User(MongoCollection<Document> collection, Document document) {
		super(collection, document);
	}

	public User setName(String name) {
		put("name", name);
		return this;
	}

	public User setPassword(String password) {
		put("password", password);
		return this;
	}

//	public User setAccount(List<String> accounts) {
//		put("accounts", accounts);
//		return this;
//	}


}
